PHP DOMDocument is the most sensible path to process the model in a forward CASSIS-compatible manner.